package com.iyao_app.entry;

import java.io.Serializable;

import io.realm.RealmObject;
import io.realm.annotations.PrimaryKey;

/**
 * 作者 :  胡家兵
 * 时间 :  2017/11/17.
 */

public class User extends RealmObject implements Serializable {

    /**
     * id : 102635
     * token : null
     * nickname : xhjxjjk
     * phone : 18155392086
     * realname : null
     * sex : 1
     * password : MTIzNDU2Nzg=
     * <p>
     * avatarUrl : http://i.ce.cn/ent/news/201703/07/W020170306560876194095.JPG
     * status : null
     * createTime : 1510916895000
     * updateTime : 1510917789000
     * source : 2
     * openid : null
     * invitationCode :
     */
    @PrimaryKey
    public String id;
    public String token;
    public String nickname;
    public String phone;
    public String realname;
    public int sex;
    public String password;
    public String avatarUrl;
    public String status;
    public long createTime;
    public long updateTime;
    public int source;
    public String openid;
    public String invitationCode;

    public String userId;
    public long birthday;
    public String city;
    public String descSign;
    public String tags;
    public String vioceSignUrl;
    public String province;
    public String district;
    public String country;
    public String visionImpression;

    @Override
    public String toString() {
        return "User{" +
                "id='" + id + '\'' +
                ", token='" + token + '\'' +
                ", nickname='" + nickname + '\'' +
                ", phone='" + phone + '\'' +
                ", realname='" + realname + '\'' +
                ", sex=" + sex +
                ", password='" + password + '\'' +
                ", avatarUrl='" + avatarUrl + '\'' +
                ", status='" + status + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", source=" + source +
                ", openid='" + openid + '\'' +
                ", invitationCode='" + invitationCode + '\'' +
                ", userId='" + userId + '\'' +
                ", birthday=" + birthday +
                ", city='" + city + '\'' +
                ", descSign='" + descSign + '\'' +
                ", tags='" + tags + '\'' +
                ", vioceSignUrl='" + vioceSignUrl + '\'' +
                ", province='" + province + '\'' +
                ", district='" + district + '\'' +
                ", country='" + country + '\'' +
                ", visionImpression='" + visionImpression + '\'' +
                '}';
    }
}
